#ifndef FRAME_H
#define FRAME_H

#include <stdint.h>

class Frame
{
public:
    Frame(int type, int length, uint8_t *data) : _type(type), _length(length), _frameData(data) {}
    ~Frame() { delete[] _frameData; }

    // type 0: I frame, type 1: P frame, type 2: Uncompressed
    int type() { return _type; }
    int length() { return _length; }
    uint8_t *data() { return _frameData; }

private:
    int _type;
    int _length;
    uint8_t *_frameData;
};

#endif // FRAME_H
